//
//  WHRProductIntroduceCell.m
//  仿造淘宝商品详情页
//
//  Created by 天质弘耕 on 2018/11/23.
//  Copyright © 2018 yixiang. All rights reserved.
//
//商品详情
#import "WHRProductIntroduceCell.h"
#import "AXspellFirstModel.h"

@implementation WHRProductIntroduceCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self creatView];
      
    }
    return self;
}


- (void)creatView {
    
    _detailImageView = [[UIImageView alloc]init];
    _detailImageView.contentMode =UIViewContentModeScaleAspectFill;
    _detailImageView.clipsToBounds=YES;//
//    _detailImageView.image = [UIImage imageNamed:@"j5.jpg"];
    [self.contentView addSubview:_detailImageView];
    
}

- (void)setImageUrlStr:(NSString *)imageUrlStr {
    
    _imageUrlStr = imageUrlStr;
    [_detailImageView sd_setImageWithURL:[NSURL URLWithString:imageUrlStr]];
    [self setlayout];

}

- (void)setlayout {
    
    self.detailImageView.sd_layout
    .leftSpaceToView(self.contentView, 0)
    .topSpaceToView(self.contentView, 10)
    .widthIs(SCREEN_WIDTH)
    .heightIs(300); 
    
//    [self setupAutoHeightWithBottomView:self.detailImageView bottomMargin:10];
    
}








@end
